/*
 * Copyright (c) 2007 jNetX.
 * http://www.jnetx.com
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * jNetX. You shall not disclose such Confidential Information and
 * shall use it only in accordance with the terms of the license
 * agreement you entered into with jNetX.
 *
 * $Id$
 */
package com.jnetx.javax.sip;

import javax.sip.ListeningPoint;
import java.text.ParseException;

/**
 * @author <a href="mailto:dparhonin@jnetx.ru">Dmitry Parhonin</a>
 * @version $Revision$
 */
public class ListeningPointImpl implements ListeningPoint {
    private final String ipAddress;
    private final int port;
    private final String transport;
    private String sentBy;

    public ListeningPointImpl(String ipAddress, int port, String transport) {
        this.ipAddress = ipAddress;
        this.port = port;
        this.transport = transport;
    }

    public int getPort() {
        return port;
    }

    public String getTransport() {
        return transport;
    }

    public String getIPAddress() {
        return ipAddress;
    }

    public void setSentBy(String sentBy) throws ParseException {
        this.sentBy = sentBy;
    }

    public String getSentBy() {
        return sentBy;
    }

    public String toString() {
        return "ListeningPointImpl{" +
                "ipAddress='" + ipAddress + '\'' +
                ", port=" + port +
                ", transport='" + transport + '\'' +
                ", sentBy='" + sentBy + '\'' +
                '}';
    }
}
/*
 * $Log$
 */